package edu.zut.bailan.score.domain;
import edu.zut.bailan.base.domain.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "Score")
public class Score extends BaseEntity<Long> {
    /**
     *score
     */
    private static final long serialVersionUID = -1691237174257609434L;

    /**
     * name for product
     */
    @Column
    String name;


    /**
     * code for product
     */
    @Column
    String code;

    /**
     * price for product
     */
    @Column
    Integer price;

    /**
     * type for product
     * 生食或熟食
     */
    @Column
    String type;

    /**
     * num for product
     */
    @Column
    Integer num;

    /**
     * Many product objects relate to one category of product.
     */
    @ManyToOne
    @JoinColumn(name = "PRODUCT_CATEGORY_ID")
    ScoreCategory scoreCategory;

    public ScoreCategory  getScoreCategory () {
        return scoreCategory;
    }

    public void setScoreCategory(ScoreCategory  scoreCategory ) {
        this.scoreCategory =scoreCategory;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
